<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="public/css/style.css" rel="stylesheet" type="text/css">
<title>Fashion Shop TVT</title>
<script type="text/javascript" src="public/js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="template/slide.js"></script>
</head>
<body>
<div id="wrapper">
    <?php
require_once 'model/works.php';
$id_work = $_GET['id'];
$ms_works= new Works();
$params = array(
    'listId_works' => $id_work
);
$work =$ms_works->select($params);
?>

	<!--TOP HEADER-->
	<?php include 'template/topHeader.php'; ?>
    <!--END TOP HEADER-->
    <!--HEADER-->
    <?php include 'template/header.php'; ?>
  <!--END HEADER-->
  <!--NAV-->
    <?php include 'template/nav.php'; ?>
    <!--END NAV-->
    <!--SLIDE-->
    <?php include 'template/slide.php'; ?>
    <!--END SLIDE-->
    <section>
    	<div id="section">
        	<!--LEFT-->
        	<?php include 'template/colleft.php'; ?>
            <!--END LEFT-->
            <!--RIGHT-->
            <div id="col_right">
            	<div id="tieudes">
                	<table>
                    	<tr>
                        	<td>
                            <img src="public/images/conlai.png">
                            </td>
                            <td>                                                	
                    		SẢN PHẨM MỚI NHẤT
                            </td>
                        </tr>
                    </table>                    
                </div>
                <div id="content">
                    <form  method="post"   action="edit.php?id=<?php echo $_GET['id'] ?>"   enctype="multipart/form-data">
                    <div id="content_left">
                        <img src="<?php echo $work[0]['image']; ?>">
                    </div>
                        <div id="content_right">                     
                            <h1><?php echo $work [0]['name']; ?></h1></br></br>
                            <p><?php echo $work [0]['chitiet']; ?></p>
                        </div>
                        <div class="clear"></div>
                        <div id="mota">
                            <div id="motass">MÔ TẢ SẢN PHẨM</div>
                            <div class="mt"><?php echo $work [0]['mota']; ?></div>
                            <div id="dk">ĐIỀU KIỆN SỬ DỤNG</div>
                            <div class="dksd"><?php echo $work [0]['dieukien']; ?></div>
                        </div>
                    </form>   
                    </div>
                </div>
            </div>
            <!--END RIGHT-->
        </div>
    </section>
    <!--END SECTION-->
     <div class="clear"></div>
     <p>&nbsp;</p>
     <p>&nbsp;</p>
     <p>&nbsp;</p>
     <!--FOOTER-->
    <?php include 'template/footer.php'; ?>
    <!--END FOOTER-->
</div>
</body>
</html>
